﻿namespace BMap
{
    using System;
    /// <summary>
    /// 地图点
    /// </summary>
    public class Point
    {
        private double x;
        private double y;

        public Point(double x, double y)
        {
            this.X = x;
            this.Y = y;
        }

        public bool Equals(Point other)
        {
            if (other == null)
            {
                return false;
            }
            return ((other.X == this.X) && (other.Y == this.Y));
        }

        public override string ToString()
        {
            return (this.X + ", " + this.Y);
        }

        public double X
        {
            get
            {
                return this.x;
            }
            set
            {
                this.x = value;
            }
        }

        public double Y
        {
            get
            {
                return this.y;
            }
            set
            {
                this.y = value;
            }
        }
    }
}

